package com.boe.csb.core.entity.po;

import java.io.Serializable;
import java.util.Date;

public class BoeApiInfo implements Serializable {
    private Long id;

    /**
     * 服务名字
     */
    private String apiName;

    /**
     * 服务中文名别名
     */
    private String alias;

    /**
     * api状态
     */
    private String apiStatus;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * api图片
     */
    private String apiPic;

    /**
     * 外键csb服务id
     */
    private Long csbApiId;

    /**
     * 类目id
     */
    private Long categoryId;

    /**
     * 创建时间
     */
    private Date gmtCreate;

    /**
     * 更新时间
     */
    private Date gmtModified;

    private Byte isRecommend;

    private Boolean isAudit;

    /**
     * 服务描述
     */
    private String apiDesc;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getApiName() {
        return apiName;
    }

    public void setApiName(String apiName) {
        this.apiName = apiName == null ? null : apiName.trim();
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias == null ? null : alias.trim();
    }

    public String getApiStatus() {
        return apiStatus;
    }

    public void setApiStatus(String apiStatus) {
        this.apiStatus = apiStatus == null ? null : apiStatus.trim();
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getApiPic() {
        return apiPic;
    }

    public void setApiPic(String apiPic) {
        this.apiPic = apiPic == null ? null : apiPic.trim();
    }

    public Long getCsbApiId() {
        return csbApiId;
    }

    public void setCsbApiId(Long csbApiId) {
        this.csbApiId = csbApiId;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public Byte getIsRecommend() {
        return isRecommend;
    }

    public void setIsRecommend(Byte isRecommend) {
        this.isRecommend = isRecommend;
    }

    public Boolean getIsAudit() {
        return isAudit;
    }

    public void setIsAudit(Boolean isAudit) {
        this.isAudit = isAudit;
    }

    public String getApiDesc() {
        return apiDesc;
    }

    public void setApiDesc(String apiDesc) {
        this.apiDesc = apiDesc == null ? null : apiDesc.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", apiName=").append(apiName);
        sb.append(", alias=").append(alias);
        sb.append(", apiStatus=").append(apiStatus);
        sb.append(", userId=").append(userId);
        sb.append(", apiPic=").append(apiPic);
        sb.append(", csbApiId=").append(csbApiId);
        sb.append(", categoryId=").append(categoryId);
        sb.append(", gmtCreate=").append(gmtCreate);
        sb.append(", gmtModified=").append(gmtModified);
        sb.append(", isRecommend=").append(isRecommend);
        sb.append(", isAudit=").append(isAudit);
        sb.append(", apiDesc=").append(apiDesc);
        sb.append("]");
        return sb.toString();
    }
}